package com.cn.xiaonuo.slbfinances.slborders.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slborders.param.SlScorePaymentParam;
import com.cn.xiaonuo.slbfinances.slborders.service.SlScorePaymentService;
import com.cn.xiaonuo.slbfinances.slborders.service.SlScoreWithdrawService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author huangtao
 * @date 2023/7/5 10:26
 * @className WithdrawController
 */


@Api(tags = "积分订单结算数据")
@RestController
public class SlScorePaymentController {
    @Autowired
    private SlScorePaymentService slScorePaymentService;


    @ApiOperation(value = "积分订单结算数据-列表", notes = "积分订单结算数据-列表")
    @PostMapping("/api/sl/sorepayment/list")
    public BusinessMessage list(@RequestBody SlScorePaymentParam param) {
        return slScorePaymentService.list(param);
    }

    @ApiOperation(value = "积分订单结算数据-汇总", notes = "积分订单结算数据-汇总")
    @PostMapping("/api/sl/sorepayment/total")
    public BusinessMessage total(@RequestBody SlScorePaymentParam param) {
        return slScorePaymentService.total(param);
    }


}
